/*!
 * Ext JS Library 3.2.1
 * Copyright(c) 2006-2010 Ext JS, Inc.
 * licensing@extjs.com
 * http://www.extjs.com/license
 */
/**
 * @class Ext.form.LookupBoxPicker
 * <p>A combobox control with support for autocomplete, remote-loading, paging and many other features.</p>
 * <p>A LookupBox works in a similar manner to a traditional HTML &lt;select> field. The difference is
 * that to submit the {@link #lookupField}, you must specify a {@link #hiddenName} to create a hidden input
 * field to hold the value of the lookupField. The <i>{@link #displayField}</i> is shown in the text field
 * which is named according to the {@link #name}.</p>
 * <p><b><u>Events</u></b></p>
 * <p>To do something when something in LookupBox is selected, configure the select event:<pre><code>
var cb = new Ext.form.LookupBox({
    // all of your config options
    listeners:{
         scope: yourScope,
         'select': yourFunction
    }
});

// Alternatively, you can assign events after the object is created:
var cb = new Ext.form.LookupBox(yourOptions);
cb.on('select', yourFunction, yourScope);
 * </code></pre></p>
 *
 * <p><b><u>LookupBox in Grid</u></b></p>
 * <p>If using a LookupBox in an {@link Ext.grid.EditorGridPanel Editor Grid} a {@link Ext.grid.Column#renderer renderer}
 * will be needed to show the displayField when the editor is not active.  Set up the renderer manually, or implement
 * a reusable render, for example:<pre><code>
 * </code></pre></p>
 *
 * <p><b><u>Filtering</u></b></p>
 * <p>A LookupBox {@link #doQuery uses filtering itself}, for information about filtering the LookupBox
 * store manually see <tt>{@link #lastQuery}</tt>.</p>
 * @constructor
 * Create a new LookupBox.
 * @param {Object} config Configuration options
 * @xtype combo
 */
Ext.form.LookupPicker = function(){

};

Ext.form.LookupPicker.prototype.setLookupBox=function(lookup){
		this.lookupbox=	lookup;
};

Ext.form.LookupPicker.prototype.setLookupValue=function(v){
		if(this.lookupbox)
		{
			
			this.lookupbox.initializeValue(v);
			this.lookupbox.collapse();
	  }
};

LookupValuer=new Ext.form.LookupPicker();



